package org.jctc.els.modules.biz.service.proTemplate;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jctc.els.modules.biz.entity.proTemplate.ProjectReviewTemplateDetailed;
import org.jctc.els.modules.biz.entity.proTemplate.ProjectReviewTemplateDetailedVO;
import org.jctc.els.modules.biz.entity.proTemplate.TemplateDetailedTree;
import org.springblade.core.tool.api.R;

import java.util.List;

/**
 * 评审模板明细表;(els_project_review_template_detailed)表服务接口
 * @author : http://www.chiner.pro
 * @date : 2022-6-21
 */
public interface ProjectReviewTemplateDetailedService{

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    ProjectReviewTemplateDetailed queryById(Long id);

    /**
     * 分页查询
     *
     * @param projectReviewTemplateDetailed 筛选条件
     * @param current 当前页码
     * @param size  每页大小
     * @return
     */
    Page<ProjectReviewTemplateDetailed> paginQuery(ProjectReviewTemplateDetailed projectReviewTemplateDetailed, long current, long size);
    /**
     * 新增数据
     *
     * @param projectReviewTemplateDetailed 实例对象
     * @return 实例对象
     */
    ProjectReviewTemplateDetailed insert(ProjectReviewTemplateDetailed projectReviewTemplateDetailed);
    /**
     * 更新数据
     *
     * @param projectReviewTemplateDetailed 实例对象
     * @return 实例对象
     */
    Boolean update(ProjectReviewTemplateDetailedVO projectReviewTemplateDetailed);
    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Long id);

    List<TemplateDetailedTree> selectList(Long projectReviewId);

    ProjectReviewTemplateDetailedVO selectDetailedById(Long id);

    Boolean deleteBatchIds(List<String> ids);
}